
<h1>Filter components in <code>ng</code></h1>



<div class="component-breakdown">
  <div>
    <table class="definition-table">
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
      
      <tr>
        <td><a href="api/ng/filter/filter">filter</a></td>
        <td><p>Selects a subset of items from <code>array</code> and returns it as a new array.</p>
</td>
      </tr>
      
      <tr>
        <td><a href="api/ng/filter/currency">currency</a></td>
        <td><p>Formats a number as a currency (ie $1,234.56). When no currency symbol is provided, default
symbol for current locale is used.</p>
</td>
      </tr>
      
      <tr>
        <td><a href="api/ng/filter/number">number</a></td>
        <td><p>Formats a number as text.</p>
</td>
      </tr>
      
      <tr>
        <td><a href="api/ng/filter/date">date</a></td>
        <td><p>Formats <code>date</code> to a string based on the requested <code>format</code>.</p>
</td>
      </tr>
      
      <tr>
        <td><a href="api/ng/filter/json">json</a></td>
        <td><p>Allows you to convert a JavaScript object into JSON string.</p>
</td>
      </tr>
      
      <tr>
        <td><a href="api/ng/filter/lowercase">lowercase</a></td>
        <td><p>Converts string to lowercase.</p>
</td>
      </tr>
      
      <tr>
        <td><a href="api/ng/filter/uppercase">uppercase</a></td>
        <td><p>Converts string to uppercase.</p>
</td>
      </tr>
      
      <tr>
        <td><a href="api/ng/filter/limitTo">limitTo</a></td>
        <td><p>Creates a new array or string containing only a specified number of elements. The elements
are taken from either the beginning or the end of the source array, string or number, as specified by
the value and sign (positive or negative) of <code>limit</code>. If a number is used as input, it is
converted to a string.</p>
</td>
      </tr>
      
      <tr>
        <td><a href="api/ng/filter/orderBy">orderBy</a></td>
        <td><p>Orders a specified <code>array</code> by the <code>expression</code> predicate. It is ordered alphabetically
for strings and numerically for numbers. Note: if you notice numbers are not being sorted
correctly, make sure they are actually being saved as numbers and not strings.</p>
</td>
      </tr>
      
    </table>
  </div>
</div>

